<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<body>
<?php

//=============================================================
//                          EDIT HERE
//=============================================================
// Please set here the e-mail addresses of the contacts in the 
// Send to: input box on the Contact Us page.
// If you dont have these many addresses simply delete the ones
// you dont need (EX: 
// if ($dest == 4 ) {
//     $fdest = "webmaster@yoursite.com" ; } )
// you have to delete the whole line .. and you also have to 
// delete the <option value="4">Webmaster</option> at around
// line 43 in contactus.php.

if ($dest == 1 ) {
     $fdest = "darkkonum@gmail.com" ; }

// Here you can put the defaul time that will be displayed
// within the e-mail EX: ( CET, GMT, EEST, etc.)

$time = "CET";     

// You can edit this leave it blank or the way it is now
// If you choose to leave it blank .. you must leave the 
// $subject intact EX: $subj = "$subject";

$subj = "Contacto de galicia rol: $subject";
    
//=============================================================
//                      STOP EDITING HERE
//=============================================================
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) 
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n"; 
}

if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Use Back - fill in all fields</h2>\n";
}


$todayis = date("l, F j, Y, g:i a") ;

$notes = stripcslashes($notes); 

$message = " $todayis [$time] \n
Message:
================================================================
 $notes \n 
================================================================

From:
 $visitor ($visitormail)\n
Additional Info :
 IP = $ip \n
Browser Info:
 $httpagent \n
Referral :
 $httpref \n
";

$from = "From: $visitormail\r\n";


mail($fdest, $subj, $message, $from);

?>
<table class='main' cellspacing='1' cellpadding='4'>
 <tr class='head'>
  <td class='head' align=center colspan='2'>Mensaje Enviado </td />
 </tr />
<p align="center">
<tr class='con1'>
    <td class="con1" valign="middle">Fecha: </td />
     <td class="con1" valign="bottom">
<?php echo $todayis ?> 
</tr />
<br />
<tr class='con1'>
    <td class="con1" valign="middle">Gracias: </td />
     <td class="con1" valign="bottom">
<?php echo $visitor ?> ( <?php echo $visitormail ?> ) 
</tr />
<br />
<tr class='con1'>
    <td class="con1" valign="middle">Enviar a : </td />
     <td class="con1" valign="bottom">
<?php echo $fdest ?>
</tr />
<br /> 
<tr class='con1'>
    <td class="con1" valign="middle">Mensaje: </td />
     <td class="con1" valign="bottom">
<br /> 
<?php $notesout = str_replace("\r", "<br/>", $notes); 
echo $notesout; ?> 
</tr />
<br />
<tr class='con1'>
    <td class="con1" valign="middle">Tu Ip: </td />
     <td class="con1" valign="bottom">
<?php echo $ip ?> 
</tr />
  </td />
 </tr />
</table>

</body>
</html>
